<%
function getStatusTime(status, item) {
if (status == 1) {
return item.require_time;
}
if (status == 2) {
return item.cancel_require_time;
}
if (status == 3) {
return item.require_confirm_time;
}
if (status == 4) {
return item.develop_time;
}
if (status == 5) {
return item.submit_test_time;
}
if (status == 6) {
return item.wait_online_time;
}
if (status == 7) {
return item.online_time;
}
if (status == 8) {
return item.mtime;
}
}
_.each(list, function(item, key){
%>
<tr class="data-list" style="color:<%= item.critical == 1 ? 'green' : (item.critical == 2 ? 'blue' : 'red') %>">
    <td class="issue_id"><%= item.id %></td>
    <td><%= item.project_name %></td>
    <td><%= item.name %></td>
    <td><%= item.needer_nickname ? item.needer_nickname : item.needer %></td>
    <td><%= item.status %></td>
    <td><%= getStatusTime(item.status_id, item) %></td>
    <td><%= item.wish_time %></td>
    <td><%= item.branch %></a></td>
    <td><a href="###" class="btn mini purple editBtn"><i class="icon-edit"></i> 编辑</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="###" class="btn mini blue deleteBtn"><i class="icon-trash"></i> 删除</a></td>
</tr>
<%
});
%>